package com.store.orm.mongo.curd;

import org.bson.conversions.Bson;

import java.util.LinkedHashMap;

/**
 * @author 宫静雨
 * @version 1.0
 */
public interface Update {

    <T> void update(Bson filter, T t);

    <T> void updateMany(Bson filter, T ts);

    void update(Bson filter, Class<?> cls, String json);

    void updateMany(Bson filter, Class<?> cls, String jsons);

    void update(Bson filter, Class<?> cls, LinkedHashMap<String, Object> map);

    void updateMany(Bson filter, Class<?> cls, LinkedHashMap<String, Object> maps);

    void update(Bson filter, Class<?> cls, Bson content);

    void updateMany(Bson filter, Class<?> cls, Bson content);
}
